package com.wuhao.jdqlibnoui.constants

import com.drake.serialize.serialize.annotation.SerializeConfig
import com.drake.serialize.serialize.serial
import java.util.UUID

@SerializeConfig(mmapID = "jdq_constant")
object AppConfig {

    var bleConnected :Boolean by serial(false)
    var isConnectBle :Boolean by serial(false)

    var bleType: Int by serial(0)
    var bleTypeUUID: UUID by serial()
    var bleServiceUUID: UUID by serial()
    var bleNotifyUUID: UUID by serial()
    var bleWriteUUID: UUID by serial()
    /**
     * 记弹器蓝牙mac地址
     */
    var bleMac: String? by serial()

    /**
     * 记弹器蓝牙设备名称
     */
    var bleName: String? by serial()
    /**
     * 是否支持记弹器
     * @return: true:是 - false:否(默认)
     */
    var isSupportJdqMode: Boolean by serial(true)
    /**
     * 记弹器震动阈值（开枪）
     */
    var vibrationThreshold: Int by serial(600000)
    /**
     * 记弹器角度阈值（抬枪过高）
     */
    var angleThreshold: Int by serial(30)
    //抬枪过高播报间隔时间
    var reportInterval: Long by serial(5000L)
    var shootInterval: Long by serial(200L)
}